package com.design.adnroid.campussecondarytrading.entity;

import android.graphics.Bitmap;

public class Goods {

    private String goodsId;
    private String goodsName;
    private String goodsText;
    private Bitmap goodsImage;
    private String goodsTime;
    private double goodsPrice;
    private String goodsOwner;
    private String goodsOwnerContact;
    private int goodsState;
    private String goodsBuyers;

    /*
     *    goodsState
     *       0               发布
     *       0 -> 1          买家下单
     *       1 -> 2          卖家确认,交易中
     *       2 -> 3          买家确认收货,交易完成
     *       4               已下架
     */
    public Goods() {

    }

    public Goods(String goodsId, String goodsName, String goodsText, Bitmap goodsImage,
            String goodsTime, double goodsPrice, String goodsOwner, String goodsOwnerContact) {
        this.goodsId = goodsId;
        this.goodsName = goodsName;
        this.goodsText = goodsText;
        this.goodsImage = goodsImage;
        this.goodsTime = goodsTime;
        this.goodsPrice = goodsPrice;
        this.goodsOwner = goodsOwner;
        this.goodsOwnerContact = goodsOwnerContact;
    }

    public void setGoodsId(String goodsId) {
        this.goodsId = goodsId;
    }

    public String getGoodsId() {
        return goodsId;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsText(String goodsText) {
        this.goodsText = goodsText;
    }

    public String getGoodsText() {
        return goodsText;
    }

    public void setGoodsImage(Bitmap goodsImage) {
        this.goodsImage = goodsImage;
    }

    public Bitmap getGoodsImage() {
        return goodsImage;
    }

    public void setGoodsTime(String goodsTime) {
        this.goodsTime = goodsTime;
    }

    public String getGoodsTime() {
        return goodsTime;
    }

    public void setGoodsPrice(double goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public double getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsOwner(String goodsOwner) {
        this.goodsOwner = goodsOwner;
    }

    public String getGoodsOwner() {
        return goodsOwner;
    }

    public void setGoodsOwnerContact(String goodsOwnerContact) {
        this.goodsOwnerContact = goodsOwnerContact;
    }

    public String getGoodsOwnerContact() {
        return goodsOwnerContact;
    }

    public void setGoodsState(int goodsState) {
        this.goodsState = goodsState;
    }

    public int getGoodsState() {
        return goodsState;
    }

    public void setGoodsBuyers(String goodsBuyers) {
        this.goodsBuyers = goodsBuyers;
    }

    public String getGoodsBuyers() {
        return goodsBuyers;
    }
}
